package com.wanda.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.wanda.mapper.RoomMapper;
import com.wanda.po.Room;
import com.wanda.po.RoomExample;
import com.wanda.service.OpeningRoomService;

@Service("openingRoomService")
public class OpeningRoomServiceImpl implements OpeningRoomService {

	@Autowired
	private RoomMapper roomMapper;
	
	public List<Room> selectOpeningRoom(RoomExample example) {
		return roomMapper.selectByExample(example);
	}

	public Room selectByPrimaryKey(int id) {
		return roomMapper.selectByPrimaryKey(id);
	}

	public int updateByPrimaryKeySelective(Room room) {
		return roomMapper.updateByPrimaryKeySelective(room);
	}

}
